package com.kele.model.goods.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kele.model.goods.Specification;
import com.kele.model.goods.SpecificationOption;
import lombok.Data;

import java.util.List;

/**
 * {
 *      "id":"1”，
 *     "specName": "网络",
 *     "specificationOptions": [
 *         {
 *             "optionName": "移动3G",
 *             "specId": 27,
 *             "orders": 1
 *         },
 *         {
 *  *             "optionName": "移动3G",
 *  *             "specId": 27,
 *  *             "orders": 1
 *  *         }
 *     ]
 * }
 */

/**
 * {
 *     "specification":{
 *         "id":"1",
 *         "specName":"大小"
 *     },
 *     specificationOptions:[
          {
             id:""
             optionName:
             specId:
             orders:
          }
 *     ]
 * }
 */
@Data
@TableName("tb_specification")
public class SpecificationDTO1 extends Specification{

    @TableId(type = IdType.AUTO)
    private Long id;

    private String specName;

    @TableField(exist = false)
    private List<SpecificationOption> specificationOptions;
}


